import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import {createPinia} from "pinia";
import {useUserStore} from './store/user.ts'

let app = createApp(App)

app.use(createPinia())
    .use(router)
    .use(ElementPlus)

const userStore = useUserStore();
userStore.restoreSession();
app.mount('#app')

